package sxe.core.image;

import snobject.*;
import step.FunctionWrapper;
import step.EvaluationFailure;

public class DetectMotion extends FunctionWrapper {
	public snObject Call(snObjectArgList argv) throws EvaluationFailure {
		snImage sni1 = argv.popImage();
		snImage sni2 = argv.popImage();
		snInteger snPixelRatio = argv.popInteger();
		
		return new snBoolean(ImageProcessing.DetectMotion(sni1,sni2,snPixelRatio.getInt()));
	}
}